package com.ioffice.export.excel.sheet.tree;


import com.ioffice.export.excel.sheet.SheetGeneric;
import com.ioffice.export.excel.sheet.cell.SheetCell;

/**
 * 
 * @author <a href="mailto:goodluck.sunlight@gmail.com">chenboning</a>
 *
 * 
 * @descption sheet 数据体组件
 *
 * @version 1.0
 *
 *
 * @time  2013-5-21  上午10:28:16
 */
public class SheetDataBody extends SheetGeneric{

	private SheetCell[][] dataCells;
	
	
	public SheetDataBody(int rowCount,int colCount) {
		dataCells=new SheetCell[rowCount][colCount];
	}
	
	@Override
	protected void initChild() {
		//child=new ArrayList<SheetCell>();
	}
	
	public SheetCell getSheetCell(int rowIndex, int colIndex) {
		return dataCells[rowIndex][colIndex];
	}

	public int getRowCount() {
		return dataCells.length;
	}

	public int getColCount() {
		return dataCells[0].length;
	}
	
	public void setSheetCell(SheetCell cell,int rowIndex,int colIndedx){
		dataCells[rowIndex][colIndedx]=cell;
	}

}
